/**
 * @description service redis
 *
 * @author xiaomi
 */

const redisStore = require('koa-redis');

const store = redisStore({
    url: process.env.REDIS_URL,
    retry_strategy: function(options) {
        return Math.min(options.attempt * 100, 10000);
    }
});

module.exports = store;
